package com.york.subject;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * 刷题微服务启动类
 * 为了将所有com.york包下面做的组件扫描
 * 要扫描引入的infra的mapper
 * 这就是为什么我们一开始要把所有的包结构都分的很明确
 */
@SpringBootApplication
@ComponentScan("com.york")
@MapperScan("com.york.**.mapper")
@EnableFeignClients(basePackages = "com.york")
public class SubjectApplication {
    public static void main(String[] args) {
        SpringApplication.run(SubjectApplication.class, args);
    }
}
